//
// Created by 徐套 on 2023/9/18.
//

#ifndef CAR_CLOUD_SERVER_CONFIG_H
#define CAR_CLOUD_SERVER_CONFIG_H
#include <string>

struct ServerConfig{
    int port;
    int worker;
};

struct LoggerConfig{
    std::string level;
    std::string output;

};

class config{
public:
    void load(std::string file_name);
    ServerConfig getServerConfig();
    LoggerConfig getLoggerConfig();

private:
    ServerConfig serverConfig;
    LoggerConfig loggerConfig;
};




#endif //CAR_CLOUD_SERVER_CONFIG_H
